<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$caipu_class?>_<?=$this->config->item('site_name');?></title>
    <meta name="keywords" content="<?=$this->config->item('site_description');?>" />
    <meta name="description" content="<?=$this->config->item('site_keywords');?>" />
    <meta name="mobile-agent" content="format=html5;url=http://m.ichufang.cn/caipu">
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/caipu.css')?>" rel="stylesheet" type="text/css" media="screen">
    <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
    <script src="<?=path_res('static/js/jquery.lazyload.js')?>"></script>
    <script src="<?=path_res('static/js/functions.js')?>"></script>
    <script>
    $(document).ready(function(){
        $("#listtyle1_list img").lazyload({
        placeholder: "<?=base_url('static/img/white70.png')?>", 
        effect : "fadeIn"
        });
    });
    </script>
</head>
<body>

<? $this->load->view('header'); ?>

    <div  class="liststyle1_w clearfix">
        <div  class="fliterstyle1"  id="fliterstyle1">
            <div  class="fliterstyle1_main">
                    <ul  class="tab">
                        <li class="li1 current"  po="1"><a  href="####">普通筛选</a></li>
                        <li class="li2 " po="2"><a  href="####">食材筛选</a></li>
                    </ul>
                    <div  class="tabcon"  po="1"  style="display: block;">
                    <dl  class="clearfix">
                        <dt  class="pngFix"><a href="<?=site_url('video')?>"><font color="red">美食视频</font></a></dt>
                    </dl>
                    <?php $jccp = array('家常菜','下饭菜','大鱼大肉','快手菜','小清新','素菜','创意菜','下酒菜')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $jccp)){echo 'on';}?>">
                        <dt  class="pngFix">家常菜谱</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/家常菜" class="<?php if(urldecode($this->uri->segment(2))=='家常菜'){echo 'chosed';}?>">家常菜</a>
                            <a href="http://www.ichufang.cn/caipu/下饭菜" class="<?php if(urldecode($this->uri->segment(2))=='下饭菜'){echo 'chosed';}?>">下饭菜</a>
                            <a href="http://www.ichufang.cn/caipu/大鱼大肉" class="<?php if(urldecode($this->uri->segment(2))=='大鱼大肉'){echo 'chosed';}?>">大鱼大肉</a>
                            <a href="http://www.ichufang.cn/caipu/快手菜" class="<?php if(urldecode($this->uri->segment(2))=='快手菜'){echo 'chosed';}?>">快手菜</a>
                            <a href="http://www.ichufang.cn/caipu/小清新" class="<?php if(urldecode($this->uri->segment(2))=='小清新'){echo 'chosed';}?>">小清新</a>
                            <a href="http://www.ichufang.cn/caipu/素菜" class="<?php if(urldecode($this->uri->segment(2))=='素菜'){echo 'chosed';}?>">素菜</a>
                            <a href="http://www.ichufang.cn/caipu/创意菜" class="<?php if(urldecode($this->uri->segment(2))=='创意菜'){echo 'chosed';}?>">创意菜</a>
                            <a href="http://www.ichufang.cn/caipu/下酒菜" class="<?php if(urldecode($this->uri->segment(2))=='下酒菜'){echo 'chosed';}?>">下酒菜</a>
                        </dd>
                    </dl>
                    <?php $tsch = array('早餐','下午茶','宵夜','深夜食堂','年夜饭','情人节','圣诞节')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $tsch)){echo 'on';}?>">
                        <dt  class="pngFix">特殊场合</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/%E6%97%A9%E9%A4%90" class="<?php if(urldecode($this->uri->segment(2))=='早餐'){echo 'chosed';}?>">早餐</a>
                            <a href="http://www.ichufang.cn/caipu/%E4%B8%8B%E5%8D%88%E8%8C%B6" class="<?php if(urldecode($this->uri->segment(2))=='下午茶'){echo 'chosed';}?>">下午茶</a>
                            <a href="http://www.ichufang.cn/caipu/%E5%AE%B5%E5%A4%9C" class="<?php if(urldecode($this->uri->segment(2))=='宵夜'){echo 'chosed';}?>">宵夜</a>
                            <a href="http://www.ichufang.cn/caipu/深夜食堂" class="<?php if(urldecode($this->uri->segment(2))=='深夜食堂'){echo 'chosed';}?>">深夜食堂</a>
                            <a href="http://www.ichufang.cn/caipu/%E5%B9%B4%E5%A4%9C%E9%A5%AD" class="<?php if(urldecode($this->uri->segment(2))=='年夜饭'){echo 'chosed';}?>">年夜饭</a>
                            <a href="http://www.ichufang.cn/caipu/%E6%83%85%E4%BA%BA%E8%8A%82" class="<?php if(urldecode($this->uri->segment(2))=='情人节'){echo 'chosed';}?>">情人节</a>
                            <a href="http://www.ichufang.cn/caipu/%E5%9C%A3%E8%AF%9E%E8%8A%82" class="<?php if(urldecode($this->uri->segment(2))=='圣诞节'){echo 'chosed';}?>">圣诞节</a>
                        </dd>
                    </dl>
                    <?php $syrq = array('儿童','老人','孕产妇','减肥','美容','补血','润肺抗燥','清热祛火')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $syrq)){echo 'on';}?>">
                        <dt  class="pngFix">适用人群</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/儿童" class="<?php if(urldecode($this->uri->segment(2))=='儿童'){echo 'chosed';}?>">儿童</a>
                            <a href="http://www.ichufang.cn/caipu/老人" class="<?php if(urldecode($this->uri->segment(2))=='老人'){echo 'chosed';}?>">老人</a>
                            <a href="http://www.ichufang.cn/caipu/孕产妇" class="<?php if(urldecode($this->uri->segment(2))=='孕产妇'){echo 'chosed';}?>">孕产妇</a>
                            <a href="http://www.ichufang.cn/caipu/减肥" class="<?php if(urldecode($this->uri->segment(2))=='减肥'){echo 'chosed';}?>">减肥</a>
                            <a href="http://www.ichufang.cn/caipu/美容" class="<?php if(urldecode($this->uri->segment(2))=='美容'){echo 'chosed';}?>">美容</a>
                            <a href="http://www.ichufang.cn/caipu/补血" class="<?php if(urldecode($this->uri->segment(2))=='补血'){echo 'chosed';}?>">补血</a>
                            <a href="http://www.ichufang.cn/caipu/润肺抗燥" class="<?php if(urldecode($this->uri->segment(2))=='润肺抗燥'){echo 'chosed';}?>">润肺抗燥</a>
                            <a href="http://www.ichufang.cn/caipu/清热祛火" class="<?php if(urldecode($this->uri->segment(2))=='清热祛火'){echo 'chosed';}?>">清热祛火</a>
                        </dd>
                    </dl>
                    <?php $zzff = array('平底锅','蒸','煎','红烧','免烤','炖','烤箱')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $zzff)){echo 'on';}?>">
                        <dt  class="pngFix">制作方法</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/平底锅" class="<?php if(urldecode($this->uri->segment(2))=='平底锅'){echo 'chosed';}?>">平底锅</a>
                            <a href="http://www.ichufang.cn/caipu/蒸" class="<?php if(urldecode($this->uri->segment(2))=='蒸'){echo 'chosed';}?>">蒸</a>
                            <a href="http://www.ichufang.cn/caipu/煎" class="<?php if(urldecode($this->uri->segment(2))=='煎'){echo 'chosed';}?>">煎</a>
                            <a href="http://www.ichufang.cn/caipu/红烧" class="<?php if(urldecode($this->uri->segment(2))=='红烧'){echo 'chosed';}?>">红烧</a>
                            <a href="http://www.ichufang.cn/caipu/免烤" class="<?php if(urldecode($this->uri->segment(2))=='免烤'){echo 'chosed';}?>">免烤</a>
                            <a href="http://www.ichufang.cn/caipu/炖" class="<?php if(urldecode($this->uri->segment(2))=='炖'){echo 'chosed';}?>">炖</a>
                            <a href="http://www.ichufang.cn/caipu/烤箱" class="<?php if(urldecode($this->uri->segment(2))=='烤箱'){echo 'chosed';}?>">烤箱</a>
                        </dd>
                    </dl>
                    <?php $zzts = array('饼','凉菜','小吃','零食','蒸蛋','寿司','自制汤圆','三明治','酱','自制泡菜','月饼','粽子','粥','布丁','饺子','披萨','炒饭','蛋挞','糕点','咖喱','曲奇','便当')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $zzts)){echo 'on';}?>">
                        <dt  class="pngFix">制作特色</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/饼" class="<?php if(urldecode($this->uri->segment(2))=='饼'){echo 'chosed';}?>">饼</a>
                            <a href="http://www.ichufang.cn/caipu/凉菜" class="<?php if(urldecode($this->uri->segment(2))=='凉菜'){echo 'chosed';}?>">凉菜</a>
                            <a href="http://www.ichufang.cn/caipu/小吃" class="<?php if(urldecode($this->uri->segment(2))=='小吃'){echo 'chosed';}?>">小吃</a>
                            <a href="http://www.ichufang.cn/caipu/零食" class="<?php if(urldecode($this->uri->segment(2))=='零食'){echo 'chosed';}?>">零食</a>
                            <a href="http://www.ichufang.cn/caipu/沙拉" class="<?php if(urldecode($this->uri->segment(2))=='沙拉'){echo 'chosed';}?>">沙拉</a>
                            <a href="http://www.ichufang.cn/caipu/蒸蛋" class="<?php if(urldecode($this->uri->segment(2))=='蒸蛋'){echo 'chosed';}?>">蒸蛋</a>
                            <a href="http://www.ichufang.cn/caipu/寿司" class="<?php if(urldecode($this->uri->segment(2))=='寿司'){echo 'chosed';}?>">寿司</a>
                            <a href="http://www.ichufang.cn/caipu/自制汤圆" class="<?php if(urldecode($this->uri->segment(2))=='自制汤圆'){echo 'chosed';}?>">自制汤圆</a>
                            <a href="http://www.ichufang.cn/caipu/三明治" class="<?php if(urldecode($this->uri->segment(2))=='三明治'){echo 'chosed';}?>">三明治</a>
                            <a href="http://www.ichufang.cn/caipu/酱" class="<?php if(urldecode($this->uri->segment(2))=='酱'){echo 'chosed';}?>">酱</a>
                            <a href="http://www.ichufang.cn/caipu/自制泡菜" class="<?php if(urldecode($this->uri->segment(2))=='自制泡菜'){echo 'chosed';}?>">自制泡菜</a>
                            <a href="http://www.ichufang.cn/caipu/月饼" class="<?php if(urldecode($this->uri->segment(2))=='月饼'){echo 'chosed';}?>">月饼</a>
                            <a href="http://www.ichufang.cn/caipu/粽子" class="<?php if(urldecode($this->uri->segment(2))=='粽子'){echo 'chosed';}?>">粽子</a>
                            <a href="http://www.ichufang.cn/caipu/粥" class="<?php if(urldecode($this->uri->segment(2))=='粥'){echo 'chosed';}?>">粥</a>
                            <a href="http://www.ichufang.cn/caipu/布丁" class="<?php if(urldecode($this->uri->segment(2))=='布丁'){echo 'chosed';}?>">布丁</a>
                            <a href="http://www.ichufang.cn/caipu/饺子" class="<?php if(urldecode($this->uri->segment(2))=='饺子'){echo 'chosed';}?>">饺子</a>
                            <a href="http://www.ichufang.cn/caipu/披萨" class="<?php if(urldecode($this->uri->segment(2))=='披萨'){echo 'chosed';}?>">披萨</a>
                            <a href="http://www.ichufang.cn/caipu/炒饭" class="<?php if(urldecode($this->uri->segment(2))=='炒饭'){echo 'chosed';}?>">炒饭</a>
                            <a href="http://www.ichufang.cn/caipu/蛋挞" class="<?php if(urldecode($this->uri->segment(2))=='蛋挞'){echo 'chosed';}?>">蛋挞</a>
                            <a href="http://www.ichufang.cn/caipu/糕点" class="<?php if(urldecode($this->uri->segment(2))=='糕点'){echo 'chosed';}?>">糕点</a>
                            <a href="http://www.ichufang.cn/caipu/咖喱" class="<?php if(urldecode($this->uri->segment(2))=='咖喱'){echo 'chosed';}?>">咖喱</a>
                            <a href="http://www.ichufang.cn/caipu/曲奇" class="<?php if(urldecode($this->uri->segment(2))=='曲奇'){echo 'chosed';}?>">曲奇</a>
                            <a href="http://www.ichufang.cn/caipu/便当" class="<?php if(urldecode($this->uri->segment(2))=='便当'){echo 'chosed';}?>">便当</a>
                        </dd>
                    </dl>
                    <?php $xzkw = array('辣','清淡','酸甜','西式','韩式','日式','汤羹')?>
                    <dl  class="clearfix <?php if(in_array(urldecode($this->uri->segment(2)), $xzkw)){echo 'on';}?>">
                        <dt  class="pngFix">选择口味</dt><dd  class="clearfix">
                            <a href="http://www.ichufang.cn/caipu/辣" class="<?php if(urldecode($this->uri->segment(2))=='辣'){echo 'chosed';}?>">辣</a>
                            <a href="http://www.ichufang.cn/caipu/清淡" class="<?php if(urldecode($this->uri->segment(2))=='清淡'){echo 'chosed';}?>">清淡</a>
                            <a href="http://www.ichufang.cn/caipu/酸甜" class="<?php if(urldecode($this->uri->segment(2))=='酸甜'){echo 'chosed';}?>">酸甜</a>
                            <a href="http://www.ichufang.cn/caipu/西式" class="<?php if(urldecode($this->uri->segment(2))=='西式'){echo 'chosed';}?>">西式</a>
                            <a href="http://www.ichufang.cn/caipu/韩式" class="<?php if(urldecode($this->uri->segment(2))=='韩式'){echo 'chosed';}?>">韩式</a>
                            <a href="http://www.ichufang.cn/caipu/日式" class="<?php if(urldecode($this->uri->segment(2))=='日式'){echo 'chosed';}?>">日式</a>
                            <a href="http://www.ichufang.cn/caipu/汤羹" class="<?php if(urldecode($this->uri->segment(2))=='汤羹'){echo 'chosed';}?>">汤羹</a>

                        </dd>
                        <!--dd  class="long clearfix">展开全部 &gt;&gt;</dd-->
                    </dl>
            </div>
            <div class="tabcon" po="2" style="display: none;">
                <script>
                function Search_shicai()
                {
                    var url = $("#searchshicai").attr('action');
                    if ($("#shicai_inpt").val() == '')
                    {
                        location.href= url + buildURL('');
                        return false;
                    }
                    else
                    {
                        location.href= url + buildURL($("#shicai_inpt").val());
                    }
                    return false;
                }
                </script>

                <div class="tabcon_scsearch">
                    <div class="w">
                        <form method="POST" id="searchshicai" action="http://www.ichufang.cn/search/caipu/" accept-charset="utf-8" onsubmit="document.charset='utf-8';return Search_shicai();"> 
                        <input type="text" id="shicai_inpt" class="text"  name="keywords" placeholder="请输入您想查找的食材" style="color: rgb(153, 153, 153);">
                        <input type="submit" class="submit pngFix" value=" ">
                        </form>

                    </div>
                </div>
                <dl  class="clearfix on">
                    <dt  class="pngFix">时令食材</dt>
                    <dd  class="clearfix row2">
                        <?php foreach ($this->Shicai_mdl->get_shicai_season(10)->result_array() as $sl):?>
                        <a target="_blank" href="<?=site_url('ingredients/'.$sl['id'])?>" title="<?=$sl['title']?>的做法大全"><span  class="yjtip">应季</span><strong><?=$sl['title']?></strong><em></em></a>
                        <?php endforeach; ?>                
                    </dd>
                    <dd  class="long clearfix"><a target="_blank" href="<?=site_url('shicai')?>" title="查看全部">查看全部 &gt;&gt;</a></dd>
                </dl>
            </div>
        </div>
        

        <div style="margin-top:10px;width:232px;overflow:hidden;background:#fff;">
            <a data-type="13" data-tmpl="230x312" data-tmplid="210" data-rd="2" data-style="2" data-border="1" href="#"></a>
        </div>



    </div>
    <div class="listtyle1_w" id="listtyle1_w">
        <div class="listtyle1_list clearfix" id="listtyle1_list">
            <?php foreach( $caipu_created as $caipu) :?>
            <div class="listtyle1">
                <div class="big">
                    <a target="_blank" href="<?=site_url("recipe/".$caipu['id'])?>" title="<?=$caipu['title']?>"><img class="img" alt="<?=$caipu['title']?>" src="<?=$caipu['coverImage']?>"></a>
                    <div  class="i_w">
                        <div class="i">
                            <div  class="c1">
                                <strong><?=$caipu['title']?></strong>
                                <span>制作需要 <?=$caipu['costtime']?>分左右</span>
                                <em><?=$caipu['author']?></em>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php endforeach;?>



        </div>


        <div class="pager">
            <?= $this->pagination->create_links();?>
        </div>
 
    </div>
</div>
<script type="text/javascript">
(function(win,doc){ 
    var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0]; 
        if (!win.alimamatk_show) { 
            s.charset = "gbk"; 
            s.async = true; 
            s.src = "http://a.alimama.cn/tkapi.js"; 
            h.insertBefore(s, h.firstChild); 
        }; 
    var o = { 
        pid: "mm_14776594_9156499_30858576",/*推广单元ID，用于区分不同的推广渠道*/ 
        appkey: "",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/ 
        unid: ""/*自定义统计字段*/
    }; 
    win.alimamatk_onload = win.alimamatk_onload || []; 
    win.alimamatk_onload.push(o); 
})(window,document);
</script>

<? $this->load->view('footer'); ?>